#include "../../src/cfgparser/cfgparser.h"
#include <QApplication>
#include <QPushButton>


int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QWidget fenetre;
    fenetre.setFixedSize(90,60);
    Config Maconfig("test.qmlrc");
    QString key1="tata";
    QString key2="tutu";
    QString key3="none";
    QString result1=Maconfig.get(key1);
    QString result2=Maconfig.get(key2);
    QString result3=Maconfig.get(key3);
    QPushButton bouton("",&fenetre);
    if(result1=="tete" && result2 == "titi" && result3 == NULL)
	bouton.setText("It's OK");
    else
    	bouton.setText("error");

    QObject::connect(&bouton, SIGNAL(clicked()),&fenetre, SLOT(close()));
	
    fenetre.show();
    return app.exec();

}
